package zhr.chapter7;

import java.math.BigInteger;

public class Example7_6 {
    public static void main(String[] args) {
        BigInteger bigInteger = new BigInteger("300000000");
        BigInteger maxNum = new BigInteger("300000300");
        while (bigInteger.compareTo(maxNum) != 0) {
            if (bigInteger.isProbablePrime(23)) {
                System.out.println(bigInteger);
            }
            bigInteger = bigInteger.add(BigInteger.ONE);
        }
    }
}
